<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>{g:b_ask$a_title@a_id=[id]} - {g:b_config$c_title@}</title>
    <link href="css/960_24_col.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
	<link href="css/redactor.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery.js" type="text/javascript"></script>
    <script src="/js/jquery-migrate.js" type="text/javascript"></script>
    <script src="/js/jspublic.js" type="text/javascript"></script>
	<script src="/js/redactor/zh_cn.js" type="text/javascript"></script>
	<script src="/js/redactor/redactor.min.js" type="text/javascript"></script>
    <script src="/include/CountTimer.ashx?id=[id]" type="text/javascript"></script>
	<script type="text/javascript">
		$(function(){
			$('.r_tools').waypoint('sticky');
		});
	</script>
</head>

<body>

	{baohan:template/tmask/m_head.html}{/baohan}
    
    <div class="container_24 mainBG top20">
	
    	<div class="grid_17">
			<div class="body">
				{liebiao:b_ask^1^a_id desc^a_id=[id]}
				<div class="Title">
					<em>编号：<script type="text/javascript" src="/include/GetID.ashx?askid={a_id}"></script></em>
					<div class="Asker"><a target="_blank" class="ShowUserOutline" href="/?userlist-{u_id}-1" title="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={u_id}},{a_hiddenuser}}"><img align="absmiddle" class="SmallPortrait" alt="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={u_id}},{a_hiddenuser}}" src="{g:b_user$u_img@u_id={u_id}}"></a></div>
					<div class="QTitle">
						<h1>
							{ruguo:{a_state}==0}<img src="images/wenhao22.gif" width="14" height="14" />{fouze}{/ruguo}
							{ruguo:{a_state}==1}<img src="images/duihao.gif" width="14" height="14" />{fouze}{/ruguo}
							{ruguo:{a_state}==2}<img src="images/chahao.gif" width="14" height="14" />{fouze}{/ruguo}
							{a_title}
						</h1>
						<div class="stat">
							<a target="_blank" href="/?userlist-{u_id}-1" title="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={u_id}},{a_hiddenuser}}">{hanshu:Gethidden@{g:b_user$u_nickName@u_id={u_id}},{a_hiddenuser}}</a>发表于 {a_time},</a>
							<span>回复：{a_reviewNumber}</span>
							<span>阅读：{a_hitNumber}</span>                        
						</div>
					</div>
					<div class="line1 top10"></div>
				</div>
				<div class="Content">
					<div class="detail">
						{a_content}
						<div class="clear"></div>
					</div>
					<div class="Tags">
						{hanshu:Isaskupload@{a_upload}} &nbsp;&nbsp; {hanshu:Isaskvideo@{a_video}}
					</div>
					<div class="clear"></div>
				</div>
				{/liebiao}				
				<div class="QuestionReplies">			
					<h2>
						{liebiao:b_ask^1^a_id desc^a_id=[id]}
						<a name="answers"></a>共有<em class="answer_count">{a_reviewNumber}</em>个答案 <a class="answer" href="#example">我要回答»</a>
						{/liebiao}
					</h2>
					<ul class="list">
						{liebiao:B_review^0^r_isGood desc,r_id asc^a_id=[id]}
						{ruguo:{r_isGood}==1}
						<!--回复内容，采纳-->
						<li class="Answer">
							<div class="user"><a target="_blank" class="ShowUserOutline" href="/?userlist-{r_userid}-1" title="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}"><img align="absmiddle" class="SmallPortrait" alt="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}" src="{g:b_user$u_img@u_id={r_userid}}"></a></div>
							<div class="body">
								<div class="time"><a target="_blank" href="/?userlist-{r_userid}-1" title="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}">{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}</a> 回答于 {r_time}</div>
								<div class="clear"></div>
								<div class="detail">
									<p><img src="images/zjda.gif" /></p>
									<p>{r_content}</p>
									<p>{hanshu:Isreupload@{g:b_image$i_title@i_type='reviewImage' and i_model='{r_id}'}}</p>
								</div>
							</div>
							<div class="clear"></div>
							<div class="replies"></div>
							<div class="votes">
								<a href="javascript:void(0)" onclick="javascript:GetAgreeNumber('action=agree&amp;id={r_id}&amp;aid={a_id}','agree_{r_id}'); return false;">赞成(<span id="agree_{r_id}2">{r_agreeNumber}</span>)</a>
								<a href="javascript:void(0)" style="cursor: pointer;" onclick="javascript:GetAgreeNumber('action=noagree&amp;id={r_id}&amp;aid={a_id}','unagree_{r_id}'); return false;">不赞成(<span id="unagree_{r_id}2">{r_unagreeNumber}</span>)</a>
								<span>{hanshu:GetRatio@{r_id}}</span>
							</div>
						</li>
						<!--End 回复内容，采纳-->
						{fouze}
						<!--回复内容，未采纳-->
						<li class="Answer">
							<div class="user"><a target="_blank" class="ShowUserOutline" href="/?userlist-{r_userid}-1" title="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}"><img align="absmiddle" class="SmallPortrait" alt="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}" src="{g:b_user$u_img@u_id={r_userid}}"></a></div>
							<div class="body">
								<div class="time"><a target="_blank" href="/?userlist-{r_userid}-1" title="{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}">{hanshu:Gethidden@{g:b_user$u_nickName@u_id={r_userid}},{r_hiddenuser}}</a> 回答于 {r_time}</div>
								<div class="clear"></div>
								<div class="detail">
									<p>{r_content}</p>
									<p>{hanshu:Isreupload@{g:b_image$i_title@i_type='reviewImage' and i_model='{r_id}'}}</p>
								</div>
							</div>
							<div class="clear"></div>
							<div class="replies"></div>
							<div class="votes">
								<a href="javascript:void(0)" onclick="javascript:GetAgreeNumber('action=agree&amp;id={r_id}&amp;aid={a_id}','agree_{r_id}'); return false;">赞成(<span id="agree_{r_id}2">{r_agreeNumber}</span>)</a>
								<a href="javascript:void(0)" style="cursor: pointer;" onclick="javascript:GetAgreeNumber('action=noagree&amp;id={r_id}&amp;aid={a_id}','unagree_{r_id}'); return false;">不赞成(<span id="unagree_{r_id}2">{r_unagreeNumber}</span>)</a>
								<span>{hanshu:GetRatio@{r_id}}</span>
							</div>
						</li>
						<!--End 回复内容，未采纳-->
						{/ruguo}
						{/liebiao}
						<li>
							<!--判断问题是否结贴-->
							{liebiao:b_ask^1^a_state desc^a_id=[id]}
							<div class="AnswerForm">
								{ruguo:{a_state}!=0}{fouze}
								<div class="user"><img align="absmiddle" user="" class="SmallPortrait" title="非会员用户" alt="非会员用户" src="/template/tmask/images/portrait.gif"></div>
								<form id="example" name="example" action="../include/review.ashx" method="post" enctype="multipart/form-data">
									<textarea name="txtContent" id="txtContent2"></textarea>
									<input type="submit" class="rndbutton" id="FormSubmitButton" value=" 我要回答 ">
									<input type="hidden" id="askid" name="askid" value="[id]" />
									<p style="display: none;">
										{hanshu:Config_reupload@} 匿名&nbsp;<input type="checkbox" name="a_hiddenuser" value="1" />
									</p>
								</form>
								<script type="text/javascript">
									$(function(){
										$('.AnswerForm textarea').redactor({lang: 'zh_cn', minHeight: 200 });
									});
								</script>
								<div class="clear"></div>
								{/ruguo}
							</div>
							{/liebiao}
							<!--End 判断问题是否结贴-->
						</li>
				   </ul>
				</div>
			</div>
        </div>
		
        <div class="grid_7 r_tools">
        	<div class="QuestionRelations">
            	<div id="QuestionWizard">
                    <p>有什么问题吗？</p>
                    <a class="rndbutton" href="{hanshu:Getlink@add,}"><span>我要提问</span></a>
                </div>
            </div>
            <div class="Qlist">
                <strong>推荐的问题</strong>
                <ul>
                	{liebiao:b_ask^8^a_id asc^a_recommend=2 }
                    <li>
                    	{ruguo:{a_state}==1}
                        <img src="images/duihao.gif" width="14" height="14" />
                        {fouze}
                        <img src="images/wenhao2.gif" width="14" height="14" />
                        {/ruguo}
                        <a href='{hanshu:Getlink@ask,{a_id}}'>{hanshu:CutString@{a_title},15}</a>
                        <span class="date">({a_reviewNumber}回/{a_hitNumber}阅)</span>
                    </li>
                    {/liebiao}
                </ul>
            </div>
            <div class="Qlist">
                <strong>类似的问题</strong>
                <ul>
                	{liebiao:b_ask^8^a_id asc^a_id <> [id] and a_state=1 and a_classid=[classid]}
                    <li>
                    	{ruguo:{a_state}==1}
                        <img src="images/duihao.gif" width="14" height="14" />
                        {fouze}
                        <img src="images/wenhao2.gif" width="14" height="14" />
                        {/ruguo}
                        <a href='{hanshu:Getlink@ask,{a_id}}'>{hanshu:CutString@{a_title},15}</a>
                        <span class="date">({a_reviewNumber}回/{a_hitNumber}阅)</span>
                    </li>
                    {/liebiao}
                </ul>
            </div>
        </div>
		
    </div>
    
    {baohan:template/tmask/m_foot.html}{/baohan}

</body>
</html>
